home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_55992.txt < prev    next >
Text File  |  1991-02-27  |  764b  |  31 lines

  1. -- card: 55992 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10.  
  11.     # ifdef       THINK_C
  12.     # define    virtual              /* removes any occurence of 'virtual' in the source code */
  13.     # endif
  14.  
  15. Also the 'direct' and 'indirect' specifiers are not used in C++, so the definition of the root class should look something like:
  16.  
  17.     # ifdef       THINK_C
  18.         struct     Generic_Class:indirect
  19.     # else
  20.         struct     Generic_Class
  21.     # endif
  22.         {
  23.             virtual int  init(void);           /* use 'virtual' keyword for C++ compatibility */
  24.                  .
  25.                  .
  26.         };
  27.  
  28.  
  29. -- part contents for background part 7
  30. ----- text -----
  31. 184